Post

Replies

Boosts

Views

Activity

Reply to Lost data in UserDefaults
Could you elaborate on what you changed? We've changed the Data Protection Entitlement to NSFileProtectionCompleteUntilFirstUserAuthentication which solved the issue for us. Also, are you able to reproduce consistently? Yes, it's easily reproducible. Reproduction steps in our case: Launch the app and log in. Force quit the app. Wait. Somewhere in the next hour or so the prewarming will start, which in resolution will call application(_:didFinishLaunchingWithOptions:). As mentioned previously, in our case, we check for some UserDefaults flags there. If they do not exist then we do a complete cleanup (UserDefaults + Keychain). This caused users on iOS 15 to get logged out.
Nov ’21
Reply to UserDefaults on App Launch
One of our apps is facing the same issue. We've seen a huge spike in the behavior you've described after the iOS 15 launch. Before that, only a small subset of users had problems with that. Sadly, we were unable to find the root cause of the issue. Our temporary solution was to completely replace UserDefaults with our own implementation. Did you manage to solve this issue @craigaps?
Oct ’21
Reply to Lost data in UserDefaults
One of our apps is facing the same issue. We've seen a huge spike in the behavior you've described after the iOS 15 launch. Before that, only a small subset of users had problems with that. Sadly, we were unable to find the root cause of the issue. Our temporary solution was to completely replace UserDefaults with our own implementation.
Oct ’21
Reply to iOS 15 beta wipes out app data
We're experiencing the same issue with UserDefaults. Only one out of three of our apps is experiencing this issue. The solution introduced by @nickfromnelson did not solve the problem. Our temporary solution was to replace UserDefaults with our implementation for the time being.
Oct ’21
Reply to Xcode 12.1 on Device Previews and running the app on an iPhone does not work
I'm having the same issue on MacOS 10.15.7 and Xcode 12.4. For some reason, the SwiftUI previews won't work in any projects. Each time I resume preview, no matter what device is currently selected, I get the following error: FailedToConnectToDTServiceHubError: Cannot connect to iPhone 12 Try disconnecting and reconnecting the device. iPhone 12 {} Did you manage to solve your problem @jainam26 ?
Apr ’21